Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve condition #2874

Closed

Conversation

ngocnhan-tran1996
Copy link
Contributor

@ngocnhan-tran1996 ngocnhan-tran1996 commented Oct 19, 2024

This PR includes:

  • Check this.producer before calling lock() to createOrGetProducer() and close method
  • Modernize switch pattern
  • Reduce else condition

@artembilan
Copy link
Member

@ngocnhan-tran1996 ,
Thank you for contribution!
Looks like you are addressing the other PR : #2862. Can yo mention that then and other contributor know, so we all don’t spend time looking into duplication?

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulling locally for final review and merge...

@artembilan artembilan added this to the 3.2.0-RC1 milestone Oct 21, 2024
@artembilan
Copy link
Member

Merged as 33da2a6.

@ngocnhan-tran1996 ,

thank you for contribution; looking forward for more!

A couple remarks:

Why your fork is called spring-amqp-fork? Why it cannot be just spring-amqp in your repositories?
Please, make yourself familiar with this article to understand of the commit message importance: https://cbea.ms/git-commit/.
Plus, GitHub is able to turn the first commit of the PR to its description.
This way we can save some time for extra typing.

@artembilan artembilan closed this Oct 21, 2024
@artembilan
Copy link
Member

This PR has also fixed #2861.

@ngocnhan-tran1996
Copy link
Contributor Author

Thanks @artembilan

I have a private repository name spring-amqp for some examples related spring-amqp. So I will rename it.

@ngocnhan-tran1996 ngocnhan-tran1996 deleted the improve-code branch October 23, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants